/**
 * ****************************************************************************
 * Project: RoboBridge
 * ----------------------------------------------------------------------------
 * -------------------------- [c]2012 - KrawallMann ---------------------------
 * ---------------------- http://www.krawallmann.de.tc/ -----------------------
 * ****************************************************************************
 * File: SensorListener.java Package: tc.de.krawallmann.robobridge.devices
 * Version: 1.0 Author(s): KrawallMann
 * ****************************************************************************
 * Description:
 * ****************************************************************************
 */
package tc.de.krawallmann.robobridge.devices;

/**
 * The listener interface for receiving sensor update events. The class that is
 * interested in processing a sensor event implements this interface, and the
 * object created with that class is registered with a component using the
 * component's <code>addSensorListener<code> method. When
 * the sensor value update occurs, that object's appropriate
 * method is invoked.
 * 
 * @author KrawallMann
 * @version 1.0
 */
public interface SensorListener {

	/**
	 * On sensor value changed.
	 * 
	 * @param sensor
	 *            the sensor
	 * @param propertyName
	 *            the property name
	 * @param oldValue
	 *            the old value
	 * @param newValue
	 *            the new value
	 */
	void onSensorValueChanged(AbstractDevice sensor, String propertyName, Object oldValue,
			Object newValue);
}
